package com.esms.dao;

import com.esms.po.Responsibility;
import com.esms.vo.ResponsibilityShowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResponsibilityMapper {

    String selectRespByJobAndDep(@Param("jobId")Integer jobId,@Param("depId")Integer depId);

    String selectRespByUId(@Param("UserId")Integer userId);

    void insertResp(Responsibility responsibility);

    Integer countByType(@Param("type")int i);

    List<Responsibility> ListResp(@Param("depId")Integer depId, @Param("jobId")Integer jobId);

    String exist(@Param("depId")Integer depId, @Param("jobId")Integer jobId);

    void updateById(Responsibility responsibility);

    void delById(@Param("id")Integer id);

    String existExcluedId(@Param("depId")Integer depId, @Param("jobId")Integer jobId, @Param("id")Integer id);
}
